<?php

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/
//Route::get('/', function () {
////    return view('welcome');
//    return view();
//});

Route::redirect('/', 'web-admin');
//Route::get('/', function (){
//    return \Illuminate\Support\Facades\Redirect::to('https://facecloud.panxsoft.com/web-admin');
//});

Route::group(['prefix' => 'web/v1', 'namespace' => 'AliPay'], function ($route) {
    $route->get('/pay/alipay', 'AliPayController@alipay');
    $route->post('/pay/alipay/notify', 'AliPayController@notify');
    $route->get('/pay/alipay/return', 'AliPayController@return');
});

Route::group(['prefix' => 'web/v1/face', 'namespace' => 'Web\v1'], function ($route) {
    $route->post('detect', 'FaceController@faceDetect')->name('Face.detect');
    $route->post('emotion', 'FaceController@getEmotion')->name('Face.emotion');
    $route->post('landmarks', 'FaceController@getLandmarks')->name('Face.landmarks');
    $route->post('agegender', 'FaceController@getAgeGender')->name('Face.agegender');
    $route->post('texture_swap_3d', 'FaceController@textureSwap')->name('Face.texture_swap_3d');
    $route->post('swapface', 'FaceController@swapFace')->name('Face.swapface');
    $route->post('generate_3d_model', 'FaceController@generateModel')->name('Face.generate_3d_model');
    $route->post('makeupswap', 'FaceController@makeupSwap')->name('Face.makeupswap');
    $route->post('faceaging', 'FaceController@faceAging')->name('Face.faceaging');
    $route->post('detecthead', 'FaceController@detectHead')->name('Face.detecthead');
    $route->post('facecompare', 'FaceController@faceCompare')->name('Face.facecompare');
    $route->post('hairsegement', 'FaceController@hairSegement')->name('Face.hairsegement');
    $route->post('haircolor', 'FaceController@hairColor')->name('Face.haircolor');
    $route->post('beautyrank', 'FaceController@beautyRank')->name('Face.beautyrank');
    $route->post('skinclassify', 'FaceController@skinClassify')->name('Face.skinclassify');
});
